Skip to content

raise_for_status fix retry handling #41940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tvaron3
Copy link
Member

@tvaron3 tvaron3 commented Jul 8, 2025

Description

The aiohttp transport allows for setting an option raise_for_status that will raise an ClientResponseError for status codes >= 400. The ClientResponseError gets converted into a ServiceResponseError. This will cause all error status codes to be retried as ServiceResponseError which will retry 3 times in region and then move to the next region for read operations.

@tvaron3 tvaron3 changed the title repro raise_for_status fix retry handling Jul 10, 2025
@tvaron3
Copy link
Member Author

tvaron3 commented Jul 10, 2025

/azp run python - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant